<? global $FullUrl, $lg, $product, $products_anews, $product_comments, $videos, $certificates, $product_id,$img_products; ?>

<div class="cleared reset-box"></div>
<div class="art-box art-sheet">
  <div class="art-box-body art-sheet-body">
    <div class="art-layout-wrapper">
      <div class="art-content-layout">
        <div class="art-content-layout-row">
          <div class="art-layout-cell art-content">
            <div class="art-box art-post">
              <div class="art-box-body art-post-body">
                <div class="art-post-inner art-article">
                  <h2 class="art-postheader">
                    <?=$product['name_'.$lg]?>
                  </h2>
                  <div class="art-postcontent">
                    <div class="art-content-layout-wrapper layout-item-0">
                      <div class="art-content-layout layout-item-1">
                        <div class="art-content-layout-row">
                          <div class="art-layout-cell layout-item-2" style="width: 100%;">
                            <p>
                            <?
                            $img = $FullUrl.'/'.GetImage($product['img']);
							?>
                              <img width="410" height="410" alt="" src="<?=$img?>" style="float: left; padding:10px;" />
                            </p>
                            <h5>
                              <?=$product['name_'.$lg]?>
                            </h5>
                            <h6>
                              <?=$product['short_'.$lg]?>
                            </h6>
                            <h6>Giá: <?=number_format($product['price'])?> VNĐ</h6>
                            <br />
                            <p style="margin-left: 40px"><a href="" class="art-button">Đặt Mua</a></p>
                            <?php Template::UserControl('CommentFB'); ?>
                            <div class="art-content-layout-wrapper layout-item-3" style="padding:10px;">
                              <div class="art-content-layout">
                                <? if ($products_anews) { ?>
                                <h2>Sản phẩm cùng loại</h2>
                                <div class="art-content-layout-row">
                                  <? for ($i=0; $i<count($products_anews); $i++) { 
									$pro = $products_anews[$i];
									//echo $pro['img'];
									$img = $FullUrl.'/'.GetImage($pro['img']);
									$link = GetProductLinkFull($pro, $lg);
									$price = $pro['price'];
									$pro_name = $pro['name_'.$lg];
									$pro_short = $pro['short_vn'];
									$pro_price = $pro['price'];
									?>
                                  <div class="art-layout-cell layout-item-<?=($i==(count($products_anews)-1)?'5':'4')?>" style="width: 25%;">
                                    <h1>
                                      <?=$pro_name?>
                                    </h1>
                                    <p style="text-align: center;"><img width="154" height="154" alt="" src="<?=$img?>" /><br />
                                    </p>
                                    <p class="intro-product-main">
                                      <?=$pro_short?>
                                    </p>
                                    <p><span style="font-style:italic;"><?=isset($pro_price)?number_format($pro_price):'0'?> VNĐ</span></p>
                                    <p><a href="<?=$link?>">Xem Chi Tiết...</a></p>
                                  </div>
                                  <?
                                }
                                ?>
                                </div>
                                <?
								}
								?>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="cleared"></div>
                </div>
                <div class="cleared"></div>
              </div>
            </div>
            <div class="cleared"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="cleared"></div>
    <div class="cleared"></div>
  </div>
</div>
